export interface statisticsReq {
  start: string;
  end: string;
}

export interface pageReq {
  page: number;
  page_size: number;
  startTime?: string;
  endTime?: string;
}

export interface wordFreqItem {
  name: string;
  value: number;
}

export interface statisticChartItem {
  date: string;
  userCount: number;
  questionCount: number;
  satisfaction: number;
}

export interface statisticsListItem {
  userCount: number;
  questionCount: number;
  likeCount: number;
  unLikeCount: number;
  total: number;
  satisfaction: string;
  wordFreq: wordFreqItem[];
  id: string;
  date: string;
  appId: string;
}

export interface statisticsRes {
  start: string;
  end: string;
}

export interface wordFreqRes {
  id: string;
  appId: string;
  wordFreq: wordFreqItem[];
}

export interface textItem {
  content: string;
}

export interface referenceItem {
  type: string;
  text: textItem;
}

export interface messageItem {
  isUser: boolean;
  text: string;
  time: string;
  username: string | undefined;
}

export interface questionListItem {
  id: string;
  teamId: string;
  tmbId: string;
  appId: string;
  dataId: string;
  chatId: string;
  time: string;
  obj: string;
  value: referenceItem[];
  userGoodFeedback: string;
  userBadFeedback: string;
  text?: string;
  username?: string;
}

export interface userListItem {
  id: string;
  studentId: string;
  username: string;
  usageDays: number;
  questionCount: number;
  questions?: questionListItem[];
}

export interface hisReq {
  label_text?: string;
  page?: number;
  page_size?: number;
  search_text?: string;
  start_time?: string;
  startTime?: string;
  end_time?: string;
  endTime?: string;
}

export interface zhaoshengDashboardDataRes {
  'candidate-quality': candidatequality;
  'highschool-consultations': highschoolconsultations[];
  'hot-words': hotword[];
  'popular-majors': {
    majors: popularmajor[];
    percentages: popularpercentages[];
  };
  'recommended-locations': recommendedlocations[];
  'recommended-times': recommendedtimes[];
  'regional-stats': {
    percentages: regionalstats[];
    regions: regionalstats[];
  };
  'top-questions': topquestions[];
}

export interface candidatequality {
  reason: string;
  result: string;
}

export interface highschoolconsultations {
  consult_count: number;
  school: string;
}

export interface hotword {
  frequency: number;
  word: string;
}

export interface popularmajor {
  popularity: number;
  major: string;
}

export interface popularpercentages {
  major: number;
  percentage: string;
}

export interface recommendedlocations {
  location: string;
  reason: string;
  score: number;
}

export interface recommendedtimes {
  name: string;
  suggest: string;
  time_range: string;
}

export interface regionalstats {
  region: string;
  students?: number;
  percentage?: number;
}

export interface topquestions {
  question: string;
  frequency: number;
}

export interface userActiveItem {
  name: string;
  value: number;
}

export interface UserTrendsItemType {
  comparison?: number;
  count?: number;
  title?: string;
  key?: string;
}
export interface UserTrendsChartDataType {
  date: string;
  newUserComparison: number;
  newUserCount: number;
  overlapUserComparison: number;
  overlapUserCount: number;
  userCount: number;
  questionCount: number;
  sessionCount: number;
}
export interface DialogueChartDataType {
  date: string;
  questionCount: number;
  sessionCount: number;
}
